//
//  DataBaseManager.h
//  Protect -A
//
//  Created by 付剑英 on 16/6/25.
//  Copyright © 2016年 付剑英. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ModelOfFirst.h"
@interface DataBaseManager : NSObject
//单例
+ (DataBaseManager *)shareInstace;


//打开数据库
- (void)openDataBase;
//创建表 删除表
- (void)createTable;
- (void)deleteTable;

//增删改查
- (void)insertEnjoy:(ModelOfFirst *)enjoy;
- (void)deleteTitle:(NSString *)title;
- (void)updateEnjoy:(ModelOfFirst *)newValue num:(NSInteger)num;
- (NSMutableArray *)select;

@end
